package com.dingwen.treasure.kettle.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import com.dingwen.treasure.kettle.base.enums.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 文件类型枚举
 * 　FileTypeEnum
 * 　@author dingwen
 * 　@date 2022/8/20
 */
@Getter
@AllArgsConstructor
public enum FileTypeEnum implements BaseEnum<Integer> {

    /**
     * TRANS
     */
    TRANS(2, "转换"),

    /**
     * JOB
     */
    JOB(1, "作业");

    /**
     * code
     */
    @EnumValue
    private final Integer code;

    /**
     * 描述
     */
    @JsonValue
    private final String description;

    /**
     * 获取枚举类描述
     *
     * @return {@link String}
     */
    @Override
    public String getEnumDescription() {
        return "文件类型";
    }
    }
